package cn.funeralobjects.ams.service;

import cn.funeralobjects.ams.BasicInfo;
import cn.funeralobjects.ams.entity.EAccess;
import cn.funeralobjects.ams.entity.EAccessKey;
import cn.funeralobjects.ams.model.AccessKey;
import cn.funeralobjects.common.service.*;

/**
 * Service of Access And AccessKey
 *
 * @author FuneralObjects
 * Create date: 2020/5/25 2:47 PM
 */
public interface AccessKeyService extends
        CodeService<EAccess, Integer>,
        EntityService<EAccess, Integer>,
        CommonModifyService<AccessKey, EAccessKey, Integer>,
        EnableService<EAccess, Integer>,
        DelSaltService<EAccess, Integer>,
        CommitService<Integer>,
        NameService<EAccess, Integer>,
        IdService<Integer>,
        ModuleService {
    String ENTITY_NAME = "AccessKey";

    /**
     * 获取该业务名称
     *
     * @return name
     */
    @Override
    default String getName() {
        return ENTITY_NAME;
    }

    /**
     * 获取该模块名称
     *
     * @return module name
     */
    @Override
    default String getModuleName() {
        return BasicInfo.MODULE_NAME;
    }

    Integer getExistsDelSalt();
}
